<include file="public@header" />
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:url('system/index')}">制度列表</a></li>
			<li class="active"><a href="{:url('system/edit')}">编辑制度</a></li>
		</ul>
		<form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('system/edit')}">
			<div class="form-group">
				<label class="col-sm-2 control-label"><span class="form-required">*</span>制度标题</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" name="title" value="{$row.title}">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label"><span class="form-required">*</span>制度摘要</label>
				<div class="col-md-6 col-sm-10">
					<textarea class="form-control" name="abstract">{$row.abstract}</textarea>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label"><span class="form-required">*</span>制度内容</label>
				<div class="col-md-6 col-sm-10">
					<script type="text/plain" id="content" name="content">{:cmf_replace_content_file_url(htmlspecialchars_decode($row['content']))}</script>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label"><span class="form-required">*</span>发布日期</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control js-bootstrap-date" name="date"  value="{$row.date}">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label"><span class="form-required">*</span>推荐</label>
				<div class="col-md-6 col-sm-10">
					<select name="recommend" class="form-control">
						<option value="0" <if $row.recommend == 0>selected</if> >否</option>
						<option value="1" <if $row.recommend == 1>selected</if> >是</option>
					</select>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-offset-2 col-sm-10">
					<input type="hidden" name="id" value="{$row.id}">
					<button type="submit" class="btn btn-primary js-ajax-submit">{:lang('SAVE')}</button>
				</div>
			</div>
		</form>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
	<script type="text/javascript">
	    //编辑器路径定义
	    var editorURL = GV.WEB_ROOT;
	</script>
	<script type="text/javascript" src="__STATIC__/js/ueditor/ueditor.config.js"></script>
	<script type="text/javascript" src="__STATIC__/js/ueditor/ueditor.all.min.js"></script>
	<script type="text/javascript">
	    var editorcontent = new baidu.editor.ui.Editor();
	    editorcontent.render('content');
	</script>
</body>
</html>